# coding: utf-8
# Author: legend
# @Time： 2020/8/27 下午10:05
from ngs.tools.snowflake import snowflake

from utils.messages.handler import BaseHandler


class SnowFlakeRequestHandler(BaseHandler):

    async def do(self, *args, **kwargs):
        count = int(kwargs.get('count'))
        return {
            'data': [snowflake() for _ in range(count)]
        }
